//
//  BookListDetailTableViewCell.m
//  FunRead
//
//  Created by  King on 15/5/22.
//  Copyright (c) 2015年 华东伟. All rights reserved.
//

#import "BookListDetailTableViewCell.h"

@implementation BookListDetailTableViewCell
- (void)dealloc
{
    [_bookName release];
    [_bookImage release];
    [_shortIntro release];
    [_author release];
    [_score release];
    [_retentionRatio release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bookImage = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 40, 60)];
        [self.contentView addSubview:_bookImage];
        [_bookImage release];
        
        self.bookName = [[UILabel alloc] initWithFrame:CGRectMake(60, 10, self.contentView.frame.size.width, 25)];
        _bookName.font = [UIFont boldSystemFontOfSize:20];
        _bookName.textColor = [UIColor grayColor];
        [self.contentView addSubview:_bookName];
        [_bookName release];
        
        self.shortIntro = [[UILabel alloc] initWithFrame:CGRectMake(60, 35, self.contentView.frame.size.width, 17)];
        _shortIntro.font = [UIFont boldSystemFontOfSize:12];
        _shortIntro.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_shortIntro];
        [_shortIntro release];
        
        self.author = [[UILabel alloc] initWithFrame:CGRectMake(60, 52, self.contentView.frame.size.width, 17)];
        _author.font = [UIFont boldSystemFontOfSize:10];
        _author.textColor = [UIColor grayColor];
        [self.contentView addSubview:_author];
        [_author release];
    }
    return self;
}


@end
